.stateImg {
  position: relative;
  cursor: pointer;
  width: 100%;
  height: 100%;
  text-align: center;
  background-color: #172544;
  color: #c4c8d2;
  overflow: hidden;

  &.defaultHeight {
    height: 160px;
  }

  &::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    cursor: pointer;
    background-color: transparent;
  }

  &:hover::after {
    content: "";
    background-color: rgba(0, 0, 0, 0.3);
  }

  &.scaling {
    cursor: zoom-in;

    &::after {
      content: "";
      position: static;
      top: 0;
      right: 0;
      bottom: 0;
      left: 0;
      background-color: transparent;
    }

    &::before {
      content: "";
      // display: inline;
      height: 100%;
      line-height: 0;
      font-size: 0;
      vertical-align: middle;
    }
  }

  .original {
    display: inline-block;
    max-width: 100%;
    max-height: 100%;
    line-height: 0;
    font-size: 0;
    vertical-align: middle;
  }

  .cover {
    display: inline-block;
    width: 100%;
    height: 100%;
    line-height: 0;
    font-size: 0;
  }

  &::before {
    content: "";
    display: inline-block;
    height: 100%;
    line-height: 0;
    font-size: 0;
    vertical-align: middle;
  }

  a {
    position: absolute;
    width: 30px;
    height: 30px;
    bottom: 0;
    right: 0;
    z-index: 1;
  }

  .anticon-fullscreen {
    position: absolute;
    right: 6px;
    bottom: 6px;
    color: #ffffff;
    width: 16px;
    height: 16px;
  }

  .ant-empty {
    display: inline-block;
    vertical-align: middle;
  }

  .tagdesc {
    position: absolute;
    height: 32px;
    line-height: 32px;
    width: 100%;
    bottom: 0;
    left: 0;
    right: 0;
    color: #ffffff;
    background: rgba(45, 59, 90, 1);
    opacity: 0.6;
  }

  svg {
    max-width: 100%;
  }

  &.noImg {
    background-color: RGBA(121, 130, 149, 0.3);
  }

  .error,
  .loading {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-color: #bbbec9;

    .content-icon {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);

      > div {
        padding-top: 10px;
      }

      .anticon {
        font-size: 50px;
      }
    }
  }
}

.innerMagnifier {
  display: none;
  position: absolute;
  background-image: url();
  background-repeat: repeat;
  z-index: 1999;
  pointer-events: none;
}

.outerMagnifier {
  display: none;
  position: absolute;
  z-index: 1999;
  overflow: hidden;

  img {
    position: absolute;
  }
}

.scaling > img {
  display: inline-block;
  max-width: 100%;
  max-height: 100%;
  line-height: 0;
  font-size: 0;
  vertical-align: middle;
}

.scaling-reset {
  position: absolute;
  right: 30px;
  bottom: 9px;
  color: #ffffff;
  width: 16px;
  height: 16px;
  z-index: 3;
  cursor: pointer;

  &.right {
    right: 6px;
  }
}
